import Mock from 'mockjs'
//import data from './data.json'

Mock.mock('http://localhost:8080/list', {
    code: 200,
    data: {
        "totalPage": 12,
        "currentPage": 1,
        "pageSize": 10, //    每页的数据
        "bulidDatas": [{
            "bulidNumber": "东区-1",
            "principalName": "张三",
            "sex": "男",
            "phone": "0393-7273828"
        }, {
            "bulidNumber": "东区-2",
            "principalName": "李四",
            "sex": "男",
            "phone": "0393-7273828"
        }, {
            "bulidNumber": "东区-3",
            "principalName": "张三",
            "sex": "男",
            "phone": "0393-7273828"
        }, {
            "bulidNumber": "东区-4",
            "principalName": "张三",
            "sex": "男",
            "phone": "0393-7273828"
        }, {
            "bulidNumber": "西区-1",
            "principalName": "张三",
            "sex": "男",
            "phone": "0393-7273828"
        }, {
            "bulidNumber": "西区-1",
            "principalName": "张三",
            "sex": "男",
            "phone": "0393-7273828"
        }, {
            "bulidNumber": "西区-1",
            "principalName": "张三",
            "sex": "男",
            "phone": "0393-7273828"
        }],
        "dormDatas": [{
            "dormId": "东区-1",
            "dormPersonName": "张三",
            "sex": "男",
            "phone": "0393-7273828",
            "state": "false",
            "maxRoomNumber": 4,
            "hasRoomNumber": 3,
        }, {
            "dormId": "东区-2",
            "dormPersonName": "李四",
            "sex": "男",
            "phone": "0393-7273828",
            "state": "false",
            "maxRoomNumber": 4,
            "hasRoomNumber": 4,
        }, {
            "dormId": "东区-3",
            "dormPersonName": "张三",
            "sex": "男",
            "phone": "0393-7273828",
            "state": "false",
            "maxRoomNumber": 4,
            "hasRoomNumber": 4,
        }, {
            "dormId": "东区-4",
            "dormPersonName": "张三",
            "sex": "男",
            "phone": "0393-7273828",
            "state": "false",
            "maxRoomNumber": 4,
            "hasRoomNumber": 4,
        }, {
            "dormId": "西区-1",
            "dormPersonName": "张三",
            "sex": "男",
            "phone": "0393-7273828",
            "state": "false",
            "maxRoomNumber": 4,
            "hasRoomNumber": 2,
        }, {
            "dormId": "西区-1",
            "dormPersonName": "张三",
            "sex": "男",
            "phone": "0393-7273828",
            "state": "false",
            "maxRoomNumber": 4,
            "hasRoomNumber": 4,
        }, {
            "dormId": "西区-1",
            "dormPersonName": "张三",
            "sex": "男",
            "phone": "0393-7273828",
            "state": "false",
            "maxRoomNumber": 4,
            "hasRoomNumber": 4,
        }]
    }
    // 'bulidDatas|100': [{
    //     dormId: '@id', //随机id
    //     dormPersonName: '@dormPersonName', //随机名称
    //     phone: /^1[34578]\d{9}$/, //随机电话号码
    //     maxRoomNumber: '@maxRoomNumber', //随机地址
    //     hasRoomNumber: '@hasRoomNumber', //随机地址
    //     sex: '@boolean', //随机性别
    //     state:'false' ,
    // }]
})